package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author hecai
 * @date 2021/12/20 9:29
 */

/**
 * 评论标签
 */
@ApiModel(value = "com-hc-domain-Tag")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_tag")
public class Tag implements Serializable {
    private static final long serialVersionUID = -2731395467707046915L;
    /**
     * 标签编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "标签编号")
    private Integer id;

    /**
     * 标签内容
     */
    @TableField(value = "title")
    @ApiModelProperty(value = "标签内容")
    private String title;
}